﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SalesSys.DAL.Base;

namespace SalesSys.DAL.Models
{
    /*
     * 消息服务相关实体
     */
    class Message
    {
    }

    /// <summary>
    /// 消息
    /// </summary>
    public class NoticeInfo : DbEntityBase<Guid>
    {
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 发送人
        /// </summary>
        public string From { get; set; }
        /// <summary>
        /// 可以查看的人员id
        /// </summary>
        public Guid To { get; set; }

        /// <summary>
        /// 可以查看的角色
        /// </summary>
        public string ToRoles { get; set; }

        public class Mapper : SysMapper<NoticeInfo, Guid>
        {

        }
    }

    /// <summary>
    /// 手机发送日志
    /// </summary>
    public class PhoneLog : DbEntityBase<Guid>
    {
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime OperaTime { get; set; }

        /// <summary>
        /// 发送内容
        /// </summary>
        public string OperaMessage { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 发送人id
        /// </summary>
        public string OperaUserId { get; set; }
        /// <summary>
        /// 发送到哪个手机号
        /// </summary>
        public string ToPhone { get; set; }

        public class Mapper : SysMapper<PhoneLog, Guid>
        {

        }
    }
}
